.App {
  text-align: center;
}

.App-logo {
  height: 40vmin;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 20s linear;
  }
}

.App-header {
  background-color: #282c34;
  padding: 20px;
  color: white;
}

.App-link {
  color: #61dafb;
}

@keyframes App-logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 全局样式 */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* 布局样式 */
.layout-container {
  min-height: 100vh;
}

.layout-header {
  background: #001529;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.layout-logo {
  color: white;
  font-size: 18px;
  font-weight: bold;
  margin-left: 24px;
}

.layout-user-info {
  color: white;
  margin-right: 24px;
}

.layout-content {
  margin: 24px;
  padding: 24px;
  background: white;
  min-height: 280px;
}

/* 登录页面样式 */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-form {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 400px;
}

.login-title {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-size: 24px;
  font-weight: bold;
}

/* 卡片样式 */
.course-card {
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.course-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.course-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.course-status.open {
  background: #f6ffed;
  color: #52c41a;
  border: 1px solid #b7eb8f;
}

.course-status.full {
  background: #fff2e8;
  color: #fa8c16;
  border: 1px solid #ffd591;
}

.course-status.closed {
  background: #fff1f0;
  color: #ff4d4f;
  border: 1px solid #ffccc7;
}

/* 统计卡片样式 */
.stat-card {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: 30px;
  font-weight: bold;
  color: #1890ff;
}

.stat-title {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .layout-content {
    margin: 16px;
    padding: 16px;
  }
  
  .login-form {
    width: 90%;
    margin: 0 20px;
    padding: 30px 20px;
  }
}

/* 表格样式 */
.table-actions {
  display: flex;
  gap: 8px;
}

/* 搜索栏样式 */
.search-bar {
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.search-bar .ant-input {
  max-width: 300px;
}

/* 页面标题样式 */
.page-title {
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

/* 加载状态样式 */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

/* 空状态样式 */
.empty-container {
  text-align: center;
  padding: 40px;
  color: #999;
}